

#include "ImageInfo.h"

ImageInfo::ImageInfo(const QString &path, const QString &name)
    : mImage(0)
    , mName(name)
    , mPath(path)
    , mPos(0, 0)
    , mSize(0, 0)
{
    QString filePath = path + name;
    mImage = new QPixmap(filePath);

    mSize = mImage->size();
}

ImageInfo::~ImageInfo()
{
    delete mImage;
    mImage = 0;
}
